<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_surplus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_surplus" data-rule="required" class="form-control" name="row[product_surplus]" type="number" value="{$row.product_surplus|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stir_surplus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stir_surplus" data-rule="required" class="form-control" name="row[stir_surplus]" type="number" value="{$row.stir_surplus|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Merge_surplus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-merge_surplus" data-rule="required" class="form-control" name="row[merge_surplus]" type="number" value="{$row.merge_surplus|htmlentities}">

        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Planid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Planid" data-source="clothmaking_plan/index" class="form-control selectpage" name="row[planid]" type="text" value="{$row.planid|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Supplier_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier_id"  class="form-control selectpage" name="row[supplier_id]" data-source="supplier/index" data-field="companyname" value="{$row.supplier_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nextid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Nextid"  data-source="clothmaking_raw/index" class="form-control selectpage" name="row[nextid]" type="text" value="{$row.nextid|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>